package com.yjz.study.http

import okhttp3.RequestBody
import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.http.*

/**
 *作用 : 请求框架的Service
 *作者 : yjz
 *时间 : 2025/2/11 15:59
 */
interface RetrofitApiService {

    @GET
    fun get(
        @HeaderMap headers: MutableMap<String, String>?, @Url url: String,
        @QueryMap(encoded = true) params: MutableMap<String, String>?
    ): Call<ResponseBody>

    @POST
    fun post(
        @HeaderMap headers: MutableMap<String, String>?, @Url url: String,
        @Body body: RequestBody?
    ): Call<ResponseBody>
}